@media screen and (max-width:900px) {
  header.header {
    .header-wrapper {
      justify-content: center;

      .barurger {
        opacity: 1;
        margin-right: auto;
        transition: .3s;
      }
    }

    .nav {
      display: none !important;
    }

  }
}

.header.toggle {
  background-color: transparent;
  transition: .5s;
  padding: 20px 0;
}

.header {
  position: fixed;
  width: 100vw;
  padding: 0px 0;
  transition: padding .5s;
  z-index: 10;
  background-color: #000;

  .header-wrapper {
    width: 90%;
    display: flex;
    margin: auto;


    .barurger.active {
      transition: .3s;

      .line {
        transition: .3s;

        &:nth-of-type(1) {
          transform: translateY(9px) rotate(45deg);
        }

        &:nth-of-type(2) {
          opacity: 0;
          transform: scale(0);
        }

        &:nth-of-type(3) {
          transform: translateY(-9px) rotate(-45deg);
          -webkit-transform: translateY(-9px) rotate(-45deg);
          -moz-transform: translateY(-9px) rotate(-45deg);
          -ms-transform: translateY(-9px) rotate(-45deg);
          -o-transform: translateY(-9px) rotate(-45deg);
        }
      }
    }

    .barurger {
      width: 30px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      opacity: 0;
      cursor: pointer;
      transition: .3s;

      .line {
        display: block;
        height: 3px;
        transition: .3s;
        margin: 3px 0;
        width: 100%;
        background-color: #fff;
      }

      &:hover {
        cursor: pointer;
      }
    }

    .author {
      display: flex;
      align-items: center;
      transition: .3s;

      .avatar {
        height: 70px;
        width: 70px;
        object-fit: cover;
        border-radius: 50%;
        overflow: hidden;
      }

      .nickname {
        margin: auto;
        font-size: 35px;
        padding: 0 15px;
        font-weight: 700;
        font-family: MV Boli;
        color: #fff;

        &:hover {
          cursor: pointer;
        }
      }
    }

    .nav {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-left: auto;
      margin-right: 20%;

      // .nav-link.active {
      //   &::before {
      //     opacity: 1;
      //     transform: translateX(0);
      //     transition: 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
      //   }
      // }
      .nav-link:hover {
        &::before {
          opacity: 1;
          transform: translateX(0);
          transition: 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }
      }

      .nav-link {
        margin: 0 20px;
        font-family: oppo;
        color: #fff;
        display: block;
        text-decoration: none;
        text-align: center;
        position: relative;
        padding-bottom: 5px;
        letter-spacing: 5px;
        font-size: 12px;
        font-size: clamp(12px, .95rem, 1.75rem);
        filter: drop-shadow(2.5px 2.5px .5px #333);
        white-space: nowrap;

        &::before {
          content: '';
          display: block;
          position: absolute;
          left: 0;
          bottom: 0;
          width: 100%;
          height: 2px;
          background-color: #f3f3f3;
          opacity: 0;
          border-radius: 5px;
          transform: translateX(-100%);
          transition: 300ms ease-in-out;
        }
      }
    }

    .search-text:focus {
      transition: all .6s ease-in-out;
      width: 240px;
      padding: 0 0 0 20px;
    }

    .search-box:hover>.search-text {
      transition: all .6s ease-in-out;
      width: 240px;
      /*   当您鼠标移入（hover）搜索框的时候 给搜索框 设置一个宽度 以达到输入框展开状态   */
      padding: 0 0 0 20px;
    }
  }
}